using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Linq;

namespace OpenWaves.Web.Controls
{
    public class ChildNodesPlaceHolder : PlaceHolder
    {
        public Control ItemsContainer
        {
            get { return (Control) this.GetChildrenRecursively().OfType<ItemsPlaceHolder>().SingleOrDefault() ?? this; }
        }
    }
}